//
//  TelePhoneRecodCell.swift
//  LeGou
//
//  Created by lxm on 2022/8/16.
//

import UIKit

class PorfitListCell: XMBaseTableViewCell {
    @IBOutlet weak var state: UILabel!
        
    @IBOutlet weak var name: UILabel!
    
    @IBOutlet weak var refundMoney: UILabel!
        
    @IBOutlet weak var partnerIcon: UIImageView!
    
    @IBOutlet weak var tbIcon: UIImageView!
    
    @IBOutlet weak var orderNo: UILabel!
    
    @IBOutlet weak var tips: UILabel!
    
    @IBOutlet weak var img: UIImageView!
    // 新人够
    @IBOutlet weak var order_new_icon: UIImageView!
        
    @IBOutlet weak var fan: UILabel!
    
    @IBOutlet weak var rimg: UIImageView!
    
    @IBOutlet weak var limg: UIImageView!
    
    @IBOutlet weak var refundBack: UIView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        partnerIcon.isHidden = true
        order_new_icon.isHidden = true
    }
    
    // 0 normal 1 gray
    func setStyle(s : Int) {
        if s == 0 {
            rimg.image = UIImage.init(named: "p_red_right")
            limg.image = UIImage.init(named: "p_black_left")
        } else {
            rimg.image = UIImage.init(named: "p_gray_right")
            limg.image = UIImage.init(named: "p_gray_left")
        }
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
